package com.fh.dto;

import java.util.List;

public class Page<T> {
    private int showCount; //每页显示记录数
    private int totalPage;		//总页数
    private int totalResult;	//总记录数
    private int currentPage;	//当前页
    private int currentResult;	//当前记录起始索引
    private List<T> data;

    public Page(com.fh.entity.Page page,List<T> list){
        this.showCount = page.getShowCount();
        this.totalPage = page.getTotalPage();
        this.totalResult = page.getTotalResult();
        this.currentPage = page.getCurrentPage();
        this.currentResult = page.getCurrentResult();
        this.data = list;
    }



    public int getShowCount() {
        return showCount;
    }

    public void setShowCount(int showCount) {
        this.showCount = showCount;
    }

    public int getTotalPage() {
        return totalPage;
    }

    public void setTotalPage(int totalPage) {
        this.totalPage = totalPage;
    }

    public int getTotalResult() {
        return totalResult;
    }

    public void setTotalResult(int totalResult) {
        this.totalResult = totalResult;
    }

    public int getCurrentPage() {
        return currentPage;
    }

    public void setCurrentPage(int currentPage) {
        this.currentPage = currentPage;
    }

    public int getCurrentResult() {
        return currentResult;
    }

    public void setCurrentResult(int currentResult) {
        this.currentResult = currentResult;
    }

    public List<T> getData() {
        return data;
    }

    public void setData(List<T> data) {
        this.data = data;
    }
}
